package com.zpark.resume.service;

import com.zpark.resume.entity.Education;
import com.zpark.resume.entity.Honor;
import com.zpark.resume.entity.Training;
import com.zpark.resume.exception.*;

import java.util.List;

/**
 * @PackageName: com.zpark.resume.service
 * @ClassName: ITrainingService
 * @Description:
 * @author: RZS
 * @date: 2023/6/1  22:11
 */
public interface ITrainingService {

    /**
     * 根据cv的id查询数据
     * @param cvId
     * @return
     */
    List<Training> findByCvId(Integer cvId);

    // 添加教育经历
    Integer addTraining(Training training) throws InsertTrainingLoseException;

    // 修改教育经历
    Integer changeTrainingById(Training training) throws UpdateTrainingLoseException;

    // 删除教育经历
    Integer removeTrainingById(Integer id) throws DeleteTrainingLoseException;
}
